/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
 * interface.h
 * Copyright (C) The Pennsylvania State University 2008 <tpk5010@psu.edu>
 * 
 * interface.h is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef INTERFACE_H
#define INTERFACE_H

#include <gtk/gtk.h>
#include <hildon-1/hildon/hildon-program.h>
#include "appdata.h"

#define _(String) gettext(String)
/* define confirmation responses */
#define CONFRESP_YES 1
#define CONFRESP_NO 2
#define CONFRESP_OK 3
#define CONFRESP_CANCEL 4
#define CONFRESP_ERROR 5
#define MAIN_VIEW_NAME "AppUIData"

typedef enum {
    NC2IF_NO_ERROR = 0,
    NC2IF_ERROR_INVALID_URI,
    NC2IF_ERROR_SAVE_FAILED,
    NC2IF_ERROR_OPEN_FAILED
} nc2iferror;

/* Struct to include view's information */
typedef struct _AppUIData AppUIData;
struct _AppUIData {

    AppData *data;
    /* Fullscreen mode is on (TRUE) or off (FALSE) */
    gboolean fullscreen;

    /* List application's widgets here. Match GladeXML file for sanity. */

};

/* Publics: */
AppUIData* interface_main_view_new( AppData* data );
void interface_main_view_destroy( AppUIData* main );
void interface_error( nc2iferror me, AppUIData *main );

#endif
